package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmBanner;
import com.aijk.ehm.model.qo.EhmBannerQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * banner
 */
public interface EhmBannerApi {
    Long save(EhmBanner bean) throws ErrorCodeException;

    void update(EhmBanner bean) throws ErrorCodeException;

    EhmBanner findOne(Long id) throws ErrorCodeException;

    List<EhmBanner> list(EhmBannerQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmBannerQo qo);

    PageInfo<EhmBanner> page(EhmBannerQo qo);
}